import { commonTableOptions } from '@/utils/util'

export const tableOption = function () {
  let self = this
  return {
    ...commonTableOptions,
    // height: self?.documentHeight - 450,
    //searchMenuSpan: 18,
    //menuWidth: 60,
    menu: true,
    header: true,
    column: [
      {
        label: '名称',
        prop: 'name',
        search: true,
        overHidden: true,
        width: 200,
        rules: [{ required: true, message: '名称不能为空', trigger: 'blur' }]
      },

      {
        label: '类型',
        prop: 'type',
        search: true,
        width: 150,
        overHidden: true,
        type: 'select',
        dicData: self.channelAreaTypeDict,
        filterable: true,
        props: {
          label: 'label',
          value: 'value'
        },
        rules: [{ required: true, message: '类型不能为空', trigger: 'change' }]
      },
      {
        label: '备注',
        prop: 'remark',
        overHidden: true
      }
    ]
  }
}
